package com.yonyou.iuap.corp.demo.yonbip.cmppayment;

import com.yonyou.iuap.corp.demo.yonbip.OpenBaseTest;

/**
 * @author nishch
 * @version 1.0
 * @date 2021/2/23
 * @des  付款工作台
 */
public class CmppaymentTestOpen extends OpenBaseTest {
    @Override
    public void list() throws Exception {

    }

    @Override
    public void detail() throws Exception {

    }

    /**
     * 生成付款单
     * @throws Exception
     */
    @Override
    public void save() throws Exception {
        String url = "https://api.diwork.com/yonbip/fi/cmppayment/save";
        String reqParams =  "{\"data\":{\"accentity_code\":\"10\",\"vouchdate\":\"2021-02-23 00:00:00\",\"tradetype_code\":\"arap_payment_other\",\"settlemode_code\":\"0001\",\"caobject\":2,\"supplier_code\":\"0012000005\",\"currency\":\"G001ZM0000DEFAULTCURRENCT00000000001\",\"enterprisebankaccount\":\"2144237004872960\",\"enterprisebankaccount_bank\":\"ffcac237-cda2-11e7-8e8e-7cd30abe\",\"enterprisebankaccount_name\":\"香雪集团银行测试\",\"exchRate\":1,\"srcitem\":8,\"retailerAccountType\":2,\"retailer\":null,\"PayBillb\":[{\"quickType_code\":\"7\",\"oriSum\":1,\"natSum\":1}],\"natCurrency\":\"G001ZM0000DEFAULTCURRENCT00000000001\",\"exchangeRateType_code\":\"01\",\"description\":\"GDCX02FJZB16070701\",\"_status\":\"Insert\"}}";
        baseApi.doPostJson(url,reqParams);
    }
}
